# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=gnome-metronome
pkgver=1.3.0
pkgrel=0
pkgdesc="Metronome beats the rhythm for you"
url="https://apps.gnome.org/app/com.adrienplazas.Metronome/"
arch="all"
license="GPL-3.0-or-later"
makedepends="
	cargo
	desktop-file-utils
	glib-dev
	gst-plugins-bad-dev
	gst-plugins-base-dev
	gstreamer-dev
	gtk4.0-dev
	libadwaita-dev
	meson
	rust
"
subpackages="$pkgname-lang"
source="https://gitlab.gnome.org/World/metronome/-/archive/$pkgver/metronome-$pkgver.tar.gz"
builddir="$srcdir/metronome-$pkgver"


build() {
	abuild-meson build
	meson compile -C build
}

check() {
	meson check
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C build
}

sha512sums="
006f29f838895546af770d2fdddc8e947372f50c9499010b7ff4d77f2ef54d71dd4e7f8250ea5d20e0ad4842a0d6f9a87db5d6c549fb2f880f332eff56472c47  metronome-1.3.0.tar.gz
"
